package com.foolishbird.sdk.core;


import com.foolishbird.sdk.api.WanSDKConfiguration;
import com.foolishbird.sdk.handler.ResponseHanderInterface;
import com.foolishbird.sdk.params.PostRequestParams;
import com.foolishbird.sdk.requester.BaseHttpRequester;
import com.foolishbird.sdk.requester.HttpRequester;


public class HttpEngineInfo {

    final WanSDKConfiguration configuration;
    final ResponseHanderInterface handler;
    final HttpRequester requester;
    final String url;
    final HttpRequester.Method httpMethod;
    final PostRequestParams requestParams;

    HttpEngineInfo(WanSDKConfiguration configuration, String url, HttpRequester.Method httpMethod,
                   PostRequestParams requestParams, ResponseHanderInterface handler){
        this.configuration = configuration;
        this.handler = handler;
        this.requester = new BaseHttpRequester(configuration.getApplicationContext());
        this.url = url;
        this.httpMethod = httpMethod;
        this.requestParams = requestParams;
    }

}
